package com.situ.ssm.service.singleton;

//饿汉式
public class Singleton1 {
	//类加载到内存的时候就创建一个唯一的实例
	private static final Singleton1 instance = new Singleton1();
	
	private Singleton1() {
	}
	
	public static Singleton1 getInstance() {
		return instance;
	}
}
